package com.woniu.cinema.domain;

import com.woniu.common.annotation.Excel;
import com.woniu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 电影和演员对应对象 tb_movie_actor
 * 
 * @author yy
 * @date 2021-04-16
 */
public class MovieActor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long movieActorId;

    /** 电影id */
    @Excel(name = "电影id")
    private Long movieId;

    /** 演员id */
    @Excel(name = "演员id")
    private Long actorId;

    /** 演员饰演角色描述 */
    @Excel(name = "演员饰演角色描述")
    private String movieActorRole;

    /** 演员角色 0-导演 1-演员 */
    @Excel(name = "演员角色 0-导演 1-演员")
    private Long movieActorType;

    public void setMovieActorId(Long movieActorId) 
    {
        this.movieActorId = movieActorId;
    }

    public Long getMovieActorId() 
    {
        return movieActorId;
    }
    public void setMovieId(Long movieId) 
    {
        this.movieId = movieId;
    }

    public Long getMovieId() 
    {
        return movieId;
    }
    public void setActorId(Long actorId) 
    {
        this.actorId = actorId;
    }

    public Long getActorId() 
    {
        return actorId;
    }
    public void setMovieActorRole(String movieActorRole) 
    {
        this.movieActorRole = movieActorRole;
    }

    public String getMovieActorRole() 
    {
        return movieActorRole;
    }
    public void setMovieActorType(Long movieActorType) 
    {
        this.movieActorType = movieActorType;
    }

    public Long getMovieActorType() 
    {
        return movieActorType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("movieActorId", getMovieActorId())
            .append("movieId", getMovieId())
            .append("actorId", getActorId())
            .append("movieActorRole", getMovieActorRole())
            .append("movieActorType", getMovieActorType())
            .toString();
    }
}
